package com.xdq.repository;

import com.xdq.bean.User;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

/**
 * @author: 徐东强
 * @date: 2018/9/27 上午10:45
 * @description:
 **/
public interface UserRepository extends PagingAndSortingRepository<User, String> {

    /**
     * 查询用户
     * @param username
     * @return
     */
    Optional<User> findByName(String username);
}
